package cn.sytton.taffe.excel.model;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Excel导入处理结果类
 *
 * @author skyrock
 */
@Data
@NoArgsConstructor
public class ExcelImportResult<T> {
    T entity;
    boolean success = true;
    String error;

    public void fail(String error) {
        this.error = error;
        this.success = false;
    }
}
